-- GENERATED SPELL FOR [Overseer Savryn] --


function spell0_32291(pUnit, Event) --@Mutilate,n/a--
pUnit:FullCastSpellOnTarget(60850,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32291', 558, 1)
end

function spell1_32291(pUnit, Event) --@Slice and Dice,Self--
pUnit:FullCastSpellOnTarget(60847,pUnit)
pUnit:RegisterEvent('Sorts_32291', 10325, 1)
end

function Sorts_32291(pUnit, Event)
local choix_sorts_32291 = math.random(0, 1)
if choix_sorts_32291 == 0 then
pUnit:RegisterEvent('spell0_32291', 1, 1)
end
if choix_sorts_32291 == 1 then
pUnit:RegisterEvent('spell1_32291', 1, 1)
end
end

function mob32291_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32291', math.random(1500, 3000), 1)
end

function mob32291_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32291_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32291_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32291, 1, 'mob32291_Action')
RegisterUnitEvent(32291, 2, 'mob32291_Leave')
RegisterUnitEvent(32291, 3, 'mob32291_Kill')
RegisterUnitEvent(32291, 4, 'mob32291_Die')
